<%-- 
    Document   : Signup
    Created on : Mar 21, 2011, 10:14:43 PM
    Author     : MaramZahran
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sign up</title>
    </head>
    <body>
        <div id="main_container">
        <jsp:include page="Banner.html" />
        <jsp:include page="menuTab.jsp" />
        <jsp:include page="/AllCategory" />
        <div class="center_content">

   	<div class="center_title_bar">Sign Up</div>

    	<div class="prod_box_big">
        	<div class="top_prod_box_big"></div>
            <div class="center_prod_box_big">

              	<div class="contact_form">
                    <form action="SignupBeans.jsp" method="Post" id="signupForm"  >
                    <div id="divName" class="form_row">
                    <label class="contact"><strong>Name:</strong></label>
                    <input  id="textName" name="name" type="text" class="contact_input" value="${name}"/>
                    
                    </div>

                    <div  id="divEmail" class="form_row">
                    <label class="contact"><strong>Email:</strong></label>
                    <input id="textEmail" type="text" name="email" class="contact_input" value="${email}" />
                    </div>

                    <div class="form_row">
                    <label class="contact"><strong>Phone:</strong></label>
                    <input type="text" name="phone" class="contact_input" value="${phone}" />
                    </div>
                    <div class="form_row">
                    <label class="contact"><strong>Password:</strong></label>
                    <input type="password" name="password" id="password" class="contact_input" />
                    </div>

                    <div class="form_row">
                    <label class="contact"><strong>Confirm Password:</strong></label>
                    <input type="password" class="contact_input" name="confirmpassword" />
                    </div>

                    <div class="form_row">
                    <label class="contact"><strong>credit:</strong></label>
                    <input type="text" name="credit" class="contact_input" value="${credit}" />
                    </div>

                    <div class="form_row">
                        <input type="submit" class="contact" value="submit" />
                    </div>
                 </form>
                </div>
            </div>
            <div class="bottom_prod_box_big"></div>
        </div>


        
         </div>
         <jsp:include page="Cart.jsp" />
          <jsp:include page="Footer.html" />
         </div>
        
    </body>

    <script type="text/javascript">
        if("${ErrorMsg}")
        {
        switch ("${ErrorMsg}")
         {
             case "0":
                 $("#divName").append("<label for='textName' generated='true' class='error' > User Name used enter another one </label>");
                 $("#divEmail").append("<label for='textEmail' generated='true' class='error' > Email used enter another email </label>");
                 break;
             case "1":
                 $("#divName").append("<label for='textName' generated='true' class='error' > User Name used enter another one </label>");
                 break;
             case "2":
                 $("#divEmail").append("<label for='textEmail' generated='true' class='error' > Email used enter another email </label>");
                break;
     }

     }
            
    </script>
</html>
